const mongoose = require("./ds")
const dataSchema = mongoose.Schema({
  name:String,
  price:Number,
  date:String,
  isLended:String,
  address:String
})
const studentSchema = mongoose.Schema({
  num:String,
  psw:String,
  lMsg:Array,
  Cname:String

})
const dataModel = mongoose.model("data",dataSchema,"data")
const studentModel = mongoose.model("student",studentSchema,"student")

module.exports = {
  dataModel:dataModel,
  studentModel:studentModel}
